//
//  XiangqingViewController.m
//  GongXiZhongJiang
//
//  Created by guo xiangyu on 4/5/18.
//  Copyright © 2018年 潇  岩. All rights reserved.
//

#import "XiangqingViewController.h"

@interface XiangqingViewController (){
    
    UILabel *xiangqing;
    
}

@end

@implementation XiangqingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor whiteColor]];
    
    xiangqing=[[UILabel alloc]init];
    xiangqing.backgroundColor=[UIColor whiteColor];
    xiangqing.frame=CGRectMake(50, 150, [UIScreen mainScreen].bounds.size.width-100, 300);
    xiangqing.backgroundColor=[UIColor grayColor];
    xiangqing.text=[NSString stringWithFormat:@"%@",[self.jieshou2 tiao]];
    xiangqing.numberOfLines = 0;
    [xiangqing sizeToFit];
    
    CGFloat labelHeight = [xiangqing sizeThatFits:CGSizeMake(xiangqing.frame.size.width, MAXFLOAT)].height;
    NSInteger count = (labelHeight) / xiangqing.font.lineHeight;
    [self.view addSubview:xiangqing];
    // Do any additional setup after loading the view.
}

-(void)YaoHaoViewControllerDelegete:(YaohaoModel *)ssString{

    xiangqing.text=ssString.choujianghao;
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
